package com.xinqi.modules.course.classroom.mapper;

import com.xinqi.common.mybatis.data.repo.SuperMapper;
import com.xinqi.modules.course.classromm.dto.ClassRoomUserResultDTO;
import com.xinqi.modules.course.classroom.domain.LiveActEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * 互动表(LiveAct)表数据库访问层
 *
 * @author liuxingxing
 * @since 2023-03-31 14:16:52
 */
@Mapper
public interface LiveActMapper extends SuperMapper<LiveActEntity> {

    ClassRoomUserResultDTO getUserInfo(@Param("studentId") Long studentId);

    Map<String, Object> countUnread(@Param("userId") Long userId, @Param("classId") Long classId);

}
